$OpenBSD: patch-src_tools_radiant_libs_stream_textstream_h,v 1.2 2014/09/29 18:23:15 kirby Exp $

Commited upstream ee51106ced2f17bcdd5cf6c706627f41f3f6c175

--- src/tools/radiant/libs/stream/textstream.h.orig	Thu May 19 13:54:02 2011
+++ src/tools/radiant/libs/stream/textstream.h	Thu May 19 13:55:49 2011
@@ -46,7 +46,7 @@ inline char* write_unsigned_nonzero_decimal_backward(c
 	return ptr;
 }
 
-#if defined (_WIN64) || defined (__LP64__) || defined (__APPLE__)
+#if defined (_WIN64) || defined (__LP64__) || defined (__APPLE__) || defined (__OpenBSD__)
 inline char* write_size_t_nonzero_decimal_backward(char* ptr, size_t decimal) {
 	for (; decimal != 0; decimal /= 10) {
 		*--ptr = char('0' + (size_t)(decimal % 10));
@@ -74,7 +74,7 @@ inline char* write_unsigned_nonzero_decimal_backward(c
 	return ptr;
 }
 
-#if defined (_WIN64) || defined (__LP64__) || defined (__APPLE__)
+#if defined (_WIN64) || defined (__LP64__) || defined (__APPLE__) || defined (__OpenBSD__)
 inline char* write_size_t_nonzero_decimal_backward(char* ptr, size_t decimal, bool show_positive) {
 	ptr = write_size_t_nonzero_decimal_backward(ptr, decimal);
 	if (show_positive) {
@@ -102,7 +102,7 @@ inline char* write_unsigned_decimal_backward(char* ptr
 	return ptr;
 }
 
-#if defined (_WIN64) || defined (__LP64__) || defined (__APPLE__)
+#if defined (_WIN64) || defined (__LP64__) || defined (__APPLE__) || defined (__OpenBSD__)
 inline char* write_size_t_decimal_backward(char* ptr, size_t decimal, bool show_positive) {
 	if (decimal == 0) {
 		*--ptr = '0';
@@ -163,7 +163,7 @@ inline TextOutputStreamType& ostream_write(TextOutputS
 	return ostream;
 }
 
-#if defined (_WIN64) || defined (__LP64__) || defined (__APPLE__)
+#if defined (_WIN64) || defined (__LP64__) || defined (__APPLE__) || defined (__OpenBSD__)
 
 /// \brief Writes a size_t \p i to \p ostream in decimal form.
 template<typename TextOutputStreamType>
